package org.example;

import org.example.bean.Boy;
import org.example.bean.Girl;
import org.example.config.Config;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
        Girl girl = context.getBean(Girl.class);

        System.out.println(girl.getBoy());
    }
}